Skip to content

Commit e133d45

Browse files
committed
Fixes #3895
1 parent 29e063e commit e133d45

File tree

9 files changed

+12
-14
lines changed

9 files changed

+12
-14
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
### New Features
66

77
- #3937: Add .has-text-weight-extrabold as a typography class.
8-
8+
- #3906 fixes #3895: Make variables root configurable
9+
-
910
### Bug Fixes
1011

1112
- #3963: Improve colour loading versions of outlined buttons

sass/base/generic.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@use "../utilities/initial-variables" as iv;
12
@use "../utilities/css-variables.scss" as cv;
23
@use "../utilities/mixins" as mx;
34

@@ -32,7 +33,7 @@ $pre-font-size: 0.875em !default;
3233
$pre-padding: 1.25rem 1.5rem !default;
3334
$pre-code-font-size: 1em !default;
3435

35-
#{cv.$variables-host} {
36+
#{iv.$variables-host} {
3637
@include cv.register-vars(
3738
(
3839
"body-background-color": #{$body-background-color},

sass/base/skeleton.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $skeleton-block-min-height: 4.5em !default;
99
$skeleton-lines-gap: 0.75em !default;
1010
$skeleton-line-height: 0.75em !default;
1111

12-
#{cv.$variables-host} {
12+
#{iv.$variables-host} {
1313
@include cv.register-vars(
1414
(
1515
"skeleton-background": #{$skeleton-background},

sass/components/navbar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ $navbar-colors: dv.$colors !default;
101101
z-index: cv.getVar("navbar-fixed-z");
102102
}
103103

104-
#{cv.$variables-host} {
104+
#{iv.$variables-host} {
105105
@include cv.register-vars(
106106
(
107107
"navbar-height": #{$navbar-height},

sass/form/tools.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $label-colors: shared.$form-colors !default;
1515

1616
$field-block-spacing: 0.75rem !default;
1717

18-
#{cv.$variables-host} {
18+
#{iv.$variables-host} {
1919
@include cv.register-vars(
2020
(
2121
"label-color": #{$label-color},

sass/grid/columns.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
$column-gap: 0.75rem !default;
99

10-
#{cv.$variables-host} {
10+
#{iv.$variables-host} {
1111
@include cv.register-vars(
1212
(
1313
"column-gap": #{$column-gap},

sass/themes/_index.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
/* Bulma Themes */
22
@charset "utf-8";
33

4+
@use "../utilities/initial-variables" as iv;
45
@use "../utilities/css-variables" as cv;
56

67
@use "light";
78
@use "dark";
89
@use "setup";
910

10-
#{cv.$variables-host} {
11+
#{iv.$variables-host} {
1112
@include light.light-theme;
1213
@include setup.setup-theme;
1314
}

sass/utilities/controls.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ $control-padding-horizontal: calc(0.75em - #{$control-border-width}) !default;
1616

1717
$control-focus-shadow-l: 50% !default;
1818

19-
@debug cv.$variables-host;
20-
@debug iv.$radius;
21-
22-
#{cv.$variables-host} {
19+
#{iv.$variables-host} {
2320
@include cv.register-vars(
2421
(
2522
"control-radius": #{$control-radius},

sass/utilities/css-variables.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
@use "initial-variables" as iv;
77
@use "functions" as fn;
88

9-
$variables-host: iv.$variables-host;
10-
119
@function buildVarName($name, $prefix: "", $suffix: "") {
1210
@return "--#{iv.$cssvars-prefix}#{$prefix}#{$name}#{$suffix}";
1311
}
@@ -497,7 +495,7 @@ $variables-host: iv.$variables-host;
497495

498496
@mixin system-theme($name) {
499497
@media (prefers-color-scheme: #{$name}) {
500-
#{$variables-host} {
498+
#{iv.$variables-host} {
501499
@content;
502500
}
503501
}

0 commit comments

Comments
 (0)